<%--
  Created by IntelliJ IDEA.
  User: songyi
  Date: 2020/6/17 0017
  Time: 21:51
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" pageEncoding="UTF-8"%>
<html>
<head>
    <title>新增页面</title>
    <meta charset="utf-8">
    <link rel="stylesheet" href="http://blog.aigouzhushou.com/layui-v2.4.3/layui/css/layui.css" media="all">
</head>
<body>
<form id="edit" class="layui-form" style="padding-top:10px;">
    <input type="hidden" id="id" name="id" value="<%=request.getParameter("id")%>">
    <div class="layui-form-item">
        <label class="layui-form-label my-label">姓名</label>
        <div class="layui-input-inline" style="width: 400px;">
            <input type="text" class="layui-input" id="name" name="name" autocomplete="off" value="${resume.name}">
        </div>
    </div>
    <div class="layui-form-item">
        <label class="layui-form-label my-label">地址</label>
        <div class="layui-input-inline" style="width: 400px;">
            <input type="text" class="layui-input" id="address" name="address" autocomplete="off" value="${resume.address}">
        </div>
    </div>
    <div class="layui-form-item">
        <label class="layui-form-label my-label">联系方式</label>
        <div class="layui-input-inline" style="width: 400px;">
            <input type="number" class="layui-input" id="phone" name="phone" autocomplete="off" value="${resume.phone}">
        </div>
    </div>
</form>
<script src="http://libs.baidu.com/jquery/2.1.4/jquery.min.js"></script>
<script src="http://blog.aigouzhushou.com/layui-v2.4.3/layui/layui.js"></script>
<script type="text/javascript">
    function getData() {
        return $('#edit').serialize();
    }

    layui.use([ 'form' ],function() {
        var form = layui.form;

        /*var name = '<%=request.getParameter("name")%>';
        name = decodeURI(name);
        $('#name').val(name);
        var address = '<%=request.getParameter("address")%>';
        address = decodeURI(address)
        $('#address').val(address);*/

        form.render();
    });
</script>
</body>
</html>
